# SPDX-License-Identifier: BSD-3-Clause

cmocka_test(eq_iir_process
	eq_iir_process.c
)

target_include_directories(eq_iir_process PRIVATE ${PROJECT_SOURCE_DIR}/src/audio)

# make small version of libaudio so we don't have to care
# about unused missing references

add_compile_options(-DUNIT_TEST)

add_library(audio_for_eq_iir STATIC
	${PROJECT_SOURCE_DIR}/src/audio/eq_iir/eq_iir.c
	${PROJECT_SOURCE_DIR}/src/math/iir_df1.c
       ${PROJECT_SOURCE_DIR}/src/math/iir_df1_generic.c
       ${PROJECT_SOURCE_DIR}/src/math/iir_df1_hifi3.c
	${PROJECT_SOURCE_DIR}/src/math/iir_df2t.c
       ${PROJECT_SOURCE_DIR}/src/math/iir_df2t_generic.c
       ${PROJECT_SOURCE_DIR}/src/math/iir_df2t_hifi3.c
	${PROJECT_SOURCE_DIR}/src/audio/buffer.c
	${PROJECT_SOURCE_DIR}/src/audio/component.c
	${PROJECT_SOURCE_DIR}/src/audio/data_blob.c
	${PROJECT_SOURCE_DIR}/src/ipc/ipc3/helper.c
	${PROJECT_SOURCE_DIR}/src/ipc/ipc-common.c
	${PROJECT_SOURCE_DIR}/src/ipc/ipc-helper.c
	${PROJECT_SOURCE_DIR}/test/cmocka/src/notifier_mocks.c
	${PROJECT_SOURCE_DIR}/src/audio/pipeline/pipeline-graph.c
	${PROJECT_SOURCE_DIR}/src/audio/pipeline/pipeline-params.c
	${PROJECT_SOURCE_DIR}/src/audio/pipeline/pipeline-schedule.c
	${PROJECT_SOURCE_DIR}/src/audio/pipeline/pipeline-stream.c
	${PROJECT_SOURCE_DIR}/src/audio/pipeline/pipeline-xrun.c
)
sof_append_relative_path_definitions(audio_for_eq_iir)

target_link_libraries(audio_for_eq_iir PRIVATE sof_options)

target_link_libraries(eq_iir_process PRIVATE audio_for_eq_iir)
